home comics writing pictures archive about

Enums.cs

Language: C#
Last Modified: 2020-06-27 1:58:30 PM UTC
File Size: 1573 bytes
http://www.penguinstew.ca/example/dataviewer/Model/Enums.cs
using System;
namespace Budgeter.Model
{
public class Enums
{
[Flags]
public enum EditType
{
NewItem = 0x1,
FirstItem = 0x2,
}
/// <summary>
/// Contains the base account types
/// </summary>
public enum Accounts
{
Savings = 0,
Chequing = 1,
Cash = 2,
Special = 3,
External = 4,
Credit = 5,
};
public enum AllowedAccounts
{
External = 0,
Personal = 1,
Special = 2,
}
/// <summary>
/// Types of transactions, used for radio buttons
/// </summary>
public enum TransactionType
{
Regular = 0,
Transfer = 1,
Special = 2,
}
/// <summary>
/// Indicates the direction of the transfer
/// </summary>
public enum TransactionDirection
{
To = 0,
From = 1,
}
/// <summary>
/// Directions of recurring payments
/// </summary>
public enum PaymentDirection
{
Income = 0,
Expense = 1,
}
/// <summary>
/// Types of Payment calculations
/// </summary>
public enum PaymentCalculationType
{
Item = 0,
Average = 1,
Min = 2,
Max = 3,
};
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73